<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>VenComPropWeb - Autenticarse</title>
</head>
<%
   if (session.getAttribute("username") != null) {
	  
	   int error = 1;
	   
	   session.setAttribute("error", error);
%>
<jsp:forward page="error.jsp"/>
<%	   
   } // if
   else {
%>   
<body BGCOLOR="#000000" TEXT="#F0F0F0" LINK="#FFFFFF" VLINK="#00ff00" ALINK="#ffff00">

<p align="left"><img src="./images/icono.JPG"  width="200" height="140" alt="icono.JPG" border="3"></p>
<big><a href="index.jsp" style="text-decoration:none">Inicio</a></big>
<div align="center">
  <form method ="post" action = "ServletAutenticarse">  
    <TABLE>
    <TR>
    <td colspan="2" valign="top" align="center" height="120"><h1>Autenticarse</h1></TD>
    </TR>
    <tr>
    <td width="50%"> <LABEL for="nombre">Nombre de usuario: </LABEL></TD>
    <TD><INPUT type="text" name="nombre" id="nombre"></TD>
    </TR>
    <TR>
    <TD><LABEL for="contrasena">Password: </LABEL></TD>
    <TD><INPUT type="password" name="cont" id="cont"></TD>
    </TR>
    <TR>
    <td colspan="2" valign="middle" align="center" height="75"><INPUT type="submit" value= "Validar"></TD>
    </TR>
    </TABLE> 
    <br>
    
  </form>
</div> 

<%
   } // else
%>


</body>
</html>